package com.app.xview;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Color;
import android.os.Bundle;

import com.app.piechart.PieChartView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        PieChartView pieChartView = findViewById(R.id.pieChartView);
        pieChartView.setData(new int[]{100, 105, 300}, new int[] {Color.YELLOW, Color.MAGENTA, Color.GREEN});
        PieChartView pieChartView2 = findViewById(R.id.pieChartView2);
        pieChartView2.setData(new int[]{100, 105, 300}, new int[] {Color.YELLOW, Color.MAGENTA, Color.GREEN});
        PieChartView pieChartView3 = findViewById(R.id.pieChartView3);
        pieChartView3.setData(new int[]{100, 105, 300}, new int[] {Color.YELLOW, Color.MAGENTA, Color.GREEN});
        PieChartView pieChartView4 = findViewById(R.id.pieChartView4);
        pieChartView4.setData(new int[]{100, 105, 300}, new int[] {Color.YELLOW, Color.MAGENTA, Color.GREEN});
    }
}